package edu.ynu.se.xiecheng.achitectureclass.common.repository;

import edu.ynu.se.xiecheng.achitectureclass.common.entity.Light;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface LightRepository extends JpaRepository<Light, Long> {
    Optional<Light> findBySensorId(String sensorId);
}